import { setValByPath } from "@/utils/tools";
const globs = import.meta.glob("./**/*.json", { eager: true });

const message = {};
for (const path in globs) {
  const mod: any = globs[path];
  const key = path.match(new RegExp("./(.*).json"))[1].replace(/\//g, ".");
  setValByPath(message, key, mod.default);
}

export default message;
